package com.zhiche.lisa.bms.service.invoice;

import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.bms.dao.model.fee.FeeAssessment;
import com.zhiche.lisa.bms.dao.model.invoice.InvoiceApplyAsse;

import java.util.List;

/**
 * <p>
 * 申请开票明细-考核 服务类
 * </p>
 *
 * @author liuanshun
 * @since 2018-09-27
 */
public interface InvoiceApplyAsseService extends IService<InvoiceApplyAsse> {
    /**
     * 根据头单id获取申请考核开票详明
     *
     * @param headerId
     * @return
     */
    List<FeeAssessment> selectInvoiceApplyAsseListByHeaderId(Long headerId);

    /**
     * 批量新增申请考核开票详明
     *
     * @param invoiceApplyAsses
     * @param headerId
     * @return
     */
    void insertInvoiceApplyAsse(List<InvoiceApplyAsse> invoiceApplyAsses, Long headerId, Integer type);

    /**
     * 根据头表id查询
     *
     * @param headId
     * @return
     */
    List<InvoiceApplyAsse> selectInvoiceApplyAssessByHeadId(Long headId);

    /**
     * 批量删除
     *
     * @param headId
     */
    void deleteAssessDetailByHeadId(Long headId);
}
